﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ThreadingHelpers.PeriodicalEngine
{
    public interface IPeriodicalInvokerRunner<TArgs, TMessage>
    {
        void RunPeriodicaly(TArgs args);

        event EventHandler<PeriodicalInvokerRunnerMessageArgs<TMessage>> MessageSent;

        PeriodicalInvoker<TArgs, TMessage> Invoker { get; set; }
    }
}
